From: Juanma Barranquero Date: Wed, 31 Jan 2007 10:03:31 +0000 (+0000) Subject: Update ../site-lisp/subdirs.el when needed. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~2512 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=60006edf540547c6d7afae504112a85facad768b;p=emacs.git Update ../site-lisp/subdirs.el when needed. --- diff --git a/nt/configure.bat b/nt/configure.bat index ad44416651a..1223f7e861d 100755 --- a/nt/configure.bat +++ b/nt/configure.bat @@ -519,8 +519,17 @@ del config.settings Rem Some people use WinZip which doesn't create empty directories! if not exist ..\site-lisp\nul mkdir ..\site-lisp\ -if not exist ..\site-lisp\subdirs.el copy subdirs.el ..\site-lisp\subdirs.el - +Rem Update subdirs.el only if it is different or fc.exe doesn't work. +if exist foo.bar del foo.bar +fc /b foo.bar foo.bar >nul 2>&1 +if not errorlevel 2 goto doUpdateSubdirs +fc /b subdirs.el ..\site-lisp\subdirs.el >nul 2>&1 +if not errorlevel 1 goto dontUpdateSubdirs +:doUpdateSubdirs +if exist ..\site-lisp\subdirs.el del ..\site-lisp\subdirs.el +copy subdirs.el ..\site-lisp\subdirs.el + +:dontUpdateSubdirs echo. echo Emacs successfully configured. echo Emacs successfully configured. >>config.log